﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace EnCor.Config
{
    public class ServiceConfigCollection : ConfigurationElementCollection
    {
        public ServiceConfigCollection()
        {
            this.AddElementName = Constants.Config_Service;
        }

        protected override ConfigurationElement CreateNewElement()
        {
            return new ServiceConfig();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ServiceConfig)element).Name;
        }
    }
}
